import { Navigate, RouteObject } from "react-router-dom";
import lazyload from "./lazyload";
const routes: RouteObject[] = [
 { path: "/login", element: lazyload("pages/Login") },
  { path: "/404", element: <h1>404</h1> },
  { path: "*", element: <Navigate to="/404" /> },
]
export default routes;
